home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
ITOBS.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
957b
|
40 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_IToBS( nInteger, nMax ) --> cBitString
PARAMETERS:
nInteger : Integer to convert to binary STRING
nMax : Maximum Number of Binary Digits to use (See Description)
SHORT:
Convert a base 10 integer to binary string (up to 52 binary digits).
DESCRIPTION:
_IToBS() accepts an integer and returns a STRING representing the
binary equivalent. Leading zeros are not provided. If you need them, pad
the result to the desired length.
The largest known possible integer that can be so converted is:
9,999,999,999,999,998.
NOTE:
EXAMPLE:
t = _itobs(13)
Result: t = '1101'
t = _itobs(128)
Result: t = '10000000'
******************************************************************************/